package com.company;

import javax.swing.*;
import java.io.Serializable;

/**
 * Created by v on 16-12-20.
 */
public class Student implements Serializable{
    private String studentNumber;
    private String name;
    private String birthDay;
    private String sex;
    private String healthy;

    public Student(String studentNumber,String name,String birthDay,
                   String set,String healthy){
        this.studentNumber=studentNumber;
        this.name=name;
        this.birthDay=birthDay;
        this.sex =set;
        this.healthy=healthy;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public String getHealthy() {
        return healthy;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public String getStudentNumber() {
        return studentNumber;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public void setHealthy(String healthy) {
        this.healthy = healthy;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setStudentNumber(String studentNumber) {
        this.studentNumber = studentNumber;
    }

    @Override
    public String toString() {
        return studentNumber+"  "+name;
    }
}
